<?php
/* @var $this RelatedlinkController */
/* @var $model Relatedlink */

$this->breadcrumbs=array(
	'链接管理'=>array('admin'),
	$model->title,
);

$this->menu=array(
	array('label'=>'返回链接管理', 'url'=>array('admin')),
	array('label'=>'创建新链接', 'url'=>array('create')),
	array('label'=>'更新当前链接', 'url'=>array('update', 'id'=>$model->relatedlink_id)),
	array('label'=>'删除当前链接', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->relatedlink_id),'confirm'=>'Are you sure you want to delete this item?')),
);
?>

<h1>当前链接 #<?php echo $model->title; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'relatedlink_id',
		'type',
		'title',
		'url',
                                           array(
                                                   'name' => 'img',
                                                   'type' => 'image',
                                                   'value' => Yii::app()->baseUrl.'/'. $model->pic->description. $model->pic->fileName,
                                           ),
		'description',
	),
)); ?>
